fix misuse of &&, will crash the app when redis is empty