<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_path(path, create=False):
 """ Check for a path on filesystem :param path: str - path name :param create: bool - create if do not exist :return: bool - path exists """

    if not os.path.exists(path):
        if create:
            os.makedirs(path)
            return os.path.exists(path)
        else:
            return False

    return True