Simplify negated if else

Change-Id: I0bcb568c34e08538b64ec6428a07ece58fa9909c