if statement in #each removed