Change if condition when checking for relative.