This is suboptimal. Could be improved to just $parser->foo($allow_bbcode);