def METHOD_NAME(item: dict) -> str | None:
    titles = item.get("titles")
    if not titles or not isinstance(titles, list):
        logger.info(f"No title for image with (foreign) id {item.get('id')}.")
        return
    return titles[0].get("title")