Added utility function __is_var_valid(...) for checking any string. Not
used somehow.