Array detection does not work with string keys