Nit: I was thinking more of a base case ``return null`` outside of this if/else block, at the end of this function.