instead of self.component_instances.select { |ci| ci.is_web_proxy? }.present? probably we want to do
self.application.component_instances.select { |ci| ci.is_web_proxy? }.present?