Smarty Call of php class function results in internal server error

[@Moritz Naczenski](http://forum.shopware.com/profile/14574/Moritz Naczenski “Moritz Naczenski”)‍ Thank you very much, I’ve added the if statement and it worked, so that means if you call a function on null it will throw an exception right?