public function instance($variable, $expectedObjectType) { return $variable instanceof $expectedObjectType; }