Added is_array check to pip exec