def check_dna_sequence(sequence):
    """Check if a given sequence contains only the allowed letters A, C, T, G."""
    return len(sequence) != 0 and all(base.upper() in ['A', 'C', 'T', 'G'] for base in sequence)