Array key exists for Python