use jquery.isEmptyObject

check is initial objects are empty