"""
Helper when using files
"""

import os

def exists(path):
    """
    Checks if the specified file exists in the filesystem.
    """
    return os.path.isfile(path)

def isempty(path):
    """
    Checks if the specified file contains any data.
    """
    return os.stat(path).st_size == 0
