def is_valid_port(port):
    """Checks a port number to check if it is within the valid range

    Args:
        port - int, port number to check

    Returns:
        bool, True if the port is within the valid range or False if not
    """
    if not isinstance(port, int):
        return False
    return 1024 < port < 65535