def handle(func, *args, **kwargs):
    """
    Handles function callbacks, typically on execution of a class method.
    :param func: func, callback function
    :param args: arguments, optional
    :param kwargs: keyword arguments, optional
    """
    if func is not None:
        try:
            return func(*args, **kwargs)
        except TypeError:
            return func()
    return