from pathlib import Path
from typing import Optional


def _read(filepath: Path) -> Optional[str]:
    """Returns content if file exists
    """
    if not filepath.exists():
        return None
    with filepath.open("r") as f:
        text: str = f.read()
    return text.strip()