Remove un-needed check in for loop