fix spelling error
check for nil
check for valid dequeued object