keys() and values() should return empty array when they can't run due to typing issues