Make sure we dont crash if the result of method.stc_foreach is not an object