So your two functions can be rolled into one.  If yu prefer not to do so, however, that's ok.