Call to undefined method ::has()