The second check would be to expensive in a draw method. But if you check for a function, always use Sugar.isFunction()