Backport is_array on entity fields.