changed if statement, now on elements existence