I think the accepted way of checking for undefined is `typeof f !== "undefined"`, since `!=` can often be misleading in js. It should be okay here though, so changing it would just be for convention's sake, so your call.