Add condition to determine numberStack is NULL anot