I'm curious to know why this was needed. As an aside wrt code style: always use brackets with if statements in OL.