Fix mistake in checking that something is array