avoid error when no objects of the given type are present