Call to a member function getEmpresa() on boolean