Stack heads default to an empty object now if they are undefined(inside the Stack constructor), so checks at a deeper level like this are unnecessary.