def _allowed_file(filename):
    """Return True if file extension is allowed, False otherwise."""
    extensions = ['csv', 'xls', 'xlsx']
    return '.' in filename and filename.rsplit('.', 1)[1].lower() in extensions
