@staticmethod
def __check_none(instance, missing_str, for_str):
    """if instance is None, raise error """
    if not instance:
        raise ValueError('Missing {} for {}.'.format(missing_str, for_str))
