def is_valid_fai_entry(fai_entry):
    """Check if the given fai entry is valid.

    Arguments:
        fai_entry (collection): Collection that will be checked for fulfillment of
            all prerequisites of a fai-entry.

    Returns:
        bool: True if the entry is valid, False if not.

    Note:
        A valid fai entry has the following structure:

            1. name of the chromosome
            2. length of the chromosome in bytes
            3. starting position of the chromosomes in the FASTA file (in bytes)
            4. length of a line in the FASTA file (in characters)
            5. length of a line in the FASTA file (in bytes) this includes trailing 

    """
    try:
        name, length, start, line_len_chars, line_len_bytes = fai_entry
    except ValueError:
        return False
    except TypeError:
        return False
    if (isinstance(name, str) or isinstance(name, bytes)) and isinstance(length
        , int) and isinstance(start, int) and isinstance(line_len_chars, int
        ) and isinstance(line_len_bytes, int):
        return True
    else:
        return False
