Check if the paren stack has elements first.