feature(isInNet): add built-in isInNet function