common/models/resources/ModelComment.php
public static function isExistByUser( $parentId, $parentType, $userId, $type = ModelComment::TYPE_COMMENT ) {

		$comment = static::findByUser( $parentId, $parentType, $userId, $type );

		return isset( $comment );
	}
public static function isExistByUser( $parentId, $parentType, $userId, $type = ModelComment::TYPE_COMMENT ) {

		$comment = static::findByUser( $parentId, $parentType, $userId, $type );

		return isset( $comment );
	}
public static function isExistByUser ( $ parentId , $ parentType , $ userId , $ type = ModelComment :: TYPE_COMMENT ) { $ comment = static :: findByUser ( $ parentId , $ parentType , $ userId , $ type ) ; return isset ( $ comment ) ; }
Check whether comment already exist for given user id.

@param integer $parentId
@param string $parentType
@param integer $userId
@param string $type
@return boolean
Check whether comment already exist for given user id .