fixed broken empty() function because it returned false instead of true for undefined object and killed the entire site