How to check programatically whether a comment is new? I'd like to make some changes to a new comment programatically. I'm using the following code:

function MYMODULE_comment_presave($comment) {
    $user = user_load($comment-&gt;uid);
    $uid = $user-&gt;uid;
    // if ($comment-&gt;is_new) {
        $comment-&gt;field_image['und'][0]['fid'] = $user-&gt;field_image['und'][0]['fid'];
        }
    // }
}


I don't know how I can check whether the comment that's about to be saved is new or edited. $comment-&gt;is_new doesn't work.

How can I solve this?
Use hook_comment_insert() instead, that should work.