check if preferred parent was set before comparing