Fix deprecated defined check on arrays