def is_valid_port(port):
    """
    Check if port is valid

    :param port: port number to be checked
    :type port: int

    :return: is port valid
    :rtype: bool
    """

    if 1 <= port <= 65535:
        return True
    else:
        return False