Fix empty checks to not crap out if you add properties/functions to arrays