Makes the list optional on paginate method