@staticmethod
def defval(val, default=None):
    """
        Returns val if is not None, default instead
        :param val:
        :param default:
        :return:
        """
    return val if val is not None else default
