Fix org.has_parent? method