isCaretPositionNode function was not returned in previous commit

Just forgot to return the function in the previous commit :-(