Adding check for redis class