Prevent undefined variable notice by changing "if($paramClass)" to "if(!empty($paramClass))"