Update if condition. Remove unused gem