fixing boolean logic for invalid moPath

adding a set of parenthesis gets the boolean logic to work the way it was intended.