correct if condition for travis test