added function is_scalar_in