or simply

if last_dequeue /= Void then
  ...