from typing import List
from typing import Any


def _first_or_none(l: List) -> Any:
    """Returns first element of list or none, if list is empty."""
    if not l:
        return None
    if len(l) > 0:
        return l[0]
    return None