Hooray for getting rid of unless and fixing spelling!  It's worth noting that you could do respond_to?(:daemon) and it's an incredibly tiny bit more efficient, but I'm not gonna complain.