I'd add an else to this check with a `JLog` statement informing developers that the Framework class typehints the `$array` param then change the first line to `$obj = new $class;` like the Framework version so we're at least always returning an object.