check if xset exists before executing it