function hasClass($className) { return $className && preg_match('`\\b' . preg_quote($className) . '\\b`si', $this->class); }