Remove unnecessary backslashes and instanceof check
Minor PHPDoc improvements