if no class methods found, do not show tab
spl_object_hash implementation for <5.2 PHP versions
streamlined initialization a bit