def _is_contact_number(contact_number: int, contacts: list[list[str]]) -> bool:
    """Private method to determine if the given contact number is a valid contact number."""
    return False if contact_number > len(contacts) or contact_number < 1 else True