added an is_empty method to the stack