I would just put this fail underneat the call to paginate(). You could remove the return then as well.