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