Added is_stack_all() utility function.