shortening of prototype
adding a if in the Function.prototype