You can use ternary operator.
$comment= !empty($meta['comment']) ? " COMMENT '.$meta['comment']."'" : "";