check isset first, not is_array