from typing import Optional
from pathlib import Path


def is_name(path: Optional[str]) -> bool:
    """Check if the given path is a name."""
    if path is None:
        return False

    name = str(Path(path.lower()).name)
    if name == path:
        return True

    return False