The general manager is to release a dog to its owner (a) on payment of (i) any fines or costs ordered to be paid by a court if the court does not order the destruction of the dog; and(ii) any registration fees if the dog is unregistered; or(b) if a court so orders.