結果 : check if stack is empty javascript