API extended with "bool pop(T &value) function"