Call to a member function get() on boolean