made shell script condition a little easier to read