More flexible by checking is_scalar.