Add has_var_dim util for help when printing