without that checl for $arg[0] != '0' it sounds ok to me