Call to undefined method stdClass::get()