1st if check is to ensure left i.e starting node and right i.e ending node data if they do not match false is returned, but control flow is not returned out of function, ins