import pathlib


def is_local_path(location: str) -> bool:
    """ Check if the given location is a local path

    :param location: holds the location of the schema definition
    :return: True if the schema is a local path
    """
    try:
        return pathlib.Path(location).exists()
    except OSError:
        # when something goes wrong, the location is most likely not a local file
        return False