def is_mtu_valid(mtu):
    """Determine whether a mtu is valid."""
    try:
        if int(mtu) < 576:
            return False
        elif int(mtu) > 9216:
            return False
        else:
            return True
    except (ValueError, TypeError):
        return False