Error thrown

Call to undefined method stdClass::hasDetails()