[FEATURE] returning false for empty object {} and add test for non-empty array