if ($vbulletin->options['fireworks_enabled'] AND $vbulletin->userinfo["{$vbulletin->options[fireworks_field]}"] == 'Yes'){ // some code here}