add isset check around ->args['post_parent']