MB-17
creation of a new function 'is_valid_cloud'