Added is_array check to UseSession tag