Added reject and empty array after send