Validates pop on empty stacks
Cleanup and extracts Element to Stack class