// if (strpos($class, $suffix) === FALSE) replace with this if ($suffix && strpos($class, $suffix) === FALSE)