check keys is None exlicitly