Check for the post type with the post ID:
if (
$post['post_id']
&& get_post( $post['post_id'] )
&& 'post' === get_post_type( $post['post_id'] )
)
Check for the post type with the post ID:
if (
$post['post_id']
&& get_post( $post['post_id'] )
&& 'post' === get_post_type( $post['post_id'] )
)