For example if I have:
use \models\foobar;
How can I check if it exists before interacting with it? class_exists('foobar') does not work and catching exception in manner of:
try { foobar::something(); } catch (Exception $e) { // Does not exists }
is ghetto.