def check_port(port):
    """
    Check whether the port is valid or not.

    Args:
        port (str): Port to check

    Raises:
        None

    Returns:
        bool: True if valid, else False
    """
    if (int(port) >= 0 and
        int(port) < 65536):
        return True
    else:
        return False