Just nitpicking, but if you name the function <code>removeFromArray</code>, I would assume <code>element</code> to be the first parameter. However, in my opinion, there is no need for outsourcing the single line in this extra function anyway.