There is no reason to check all non-empty attributes of resource/facility. Also checkAttributesValues methods exist, so there is no need to use "for" cycle.