Using single if instead the ternary operation in Registry::bindData()