Correcting array check