mainly fixed bug with isEmptyObject true against functions