Separate agent type for Simple A/B

Looks like some of the places where this is called were previously checking to "!$agent".  Perhaps you should just return FALSE if $agent is empty as well.  See line 370 and 395 below.