import ipaddress


def check_ip_validity(ip: str) -> bool:
    """
    Checks if the provided IP is a valid IPV4 IP.

    :param ip:
    :return:
    """

    # Checks if there is a value
    if ip:
        try:
            # Checks if it is a valid IPV4 address
            ipaddress.IPv4Address(ip)

        # If not, catches the exception
        except ipaddress.AddressValueError:

            # And return false
            return False

        # If the IP address is valid, returns true
        return True

    # If no IP was given
    return False