Check the existence of file path.

def is_file_exists(filename):
        # type: (AnyStr) -> bool
        """Check the existence of file path."""
        if filename is None or not os.path.exists(filename) or not os.path.isfile(filename):
            return False
        else:
            return True