def has_features(fcollection):
    try:
        return 'features' in fcollection
        # and is_featurelike(fcollection['features'][0])
    except (AttributeError, TypeError):
        return False
Returns true for a FeatureCollection-like structure.
dataset/ETHPy150Open bkg/django-spillway/spillway/collections.py/has_features