The foreman proxy might be running even when register_in_foreman is not set to true. Safer would be chcking on presence one of capsule-dns/dhcp/ftfp/puppet/puppetca