checking iff array exists. see #2