funccheckPaid(utilityId:String)->Int{varamount:String=""varstatus=0print("insidenewfunction")print("\(utilityId)insidenewfunction")self.databaseRefPayment.observe(DataEventType.value,with:{(DataSnapshot)inifDataSnapshot.childrenCount>0{forpaymentsinDataSnapshot.children.allObjectsas![DataSnapsho