initialize $post_relations to avoid a notice when it is empty