from pathlib import Path


def is_valid_file(file_path: Path, extensions=['.toml', '.json']) -> bool:
    """checks: file exists, is not directory, has correct extension and file_size > 1 bytes"""
    is_valid = False
    if file_path.is_file():
        if file_path.suffix in extensions:
            if file_path.stat().st_size > 1:
                is_valid = True
    return is_valid