it looks like you're trying to mimic having some kind of label.isFunction method without actually having one. Is there a reason you didn't go that route?