Fixed unnecessary performance drop for has_parent