def all_instances_completed(instances):
    """Returns instances if they are all completed, otherwise False."""
    if all(i.get('status') == 'completed' for i in instances):
        return instances
    else:
        return False