quick fix: remove second if statement in Facade::BaseFacade.paginate()