More error free message queue

Add boolean telling whether message queue is empty or not
More error free message queue

Add boolean telling whether message queue is empty or not