Add method Pujs::checkMagicFunc