Here you can find the source of empty()
Array.prototype.empty = function () { return(this.size() < 1) }
Array.prototype.empty = function () { return !(this.length > 0) };
Array.prototype.empty = function(){ return this.length === 0; };
Array.prototype.empty = function() { return this.length == 0;
Array.prototype.empty = function(){ this.length =0; return this; };