Check if parent is not nil