Changed Final If Statement in StackChecker

Instead of checking if size of stack is zero at the end, it just checks
if stack is empty. Better way of coding the same thing.