Remove duplicate "if if"

Change-Id: I23a87f0c0b88e31de5bf0c8ce7015d60cb51bfc9