def _get_key_value(header, key):
    """
    Helper function to get header keywords wrapping any KeyErrors

    Returns:
        Keyword value; None if KeyError

    """
    try:
        value = header.header[key]
    except KeyError:
        value = None
    return value