what about `('' === strstr($class, $prefix, true))`

Also you should use strict comparison anyway.