Add conditions check to case