simplified if statement

Change-Id: I0488601a46587ea9bd30125c73aced304b62b102