def METHOD_NAME(cls, lydrc_file_path):
    """Check that lydrc_file_path exists if not none"""
    if lydrc_file_path != None and not lydrc_file_path.is_file():
        raise ValueError(".lydrc script: the path given is not a file")