This `if-else` clause seems unnecessary since `$my_post` will always be set by this point.