Only check object keys, re #336