/**
  * Binding files with owner
  *
  * @param int $ownerId
  * @param int $ownerType
  * @param array|int $fileId
  * @return File|bool|array
  */
 private function bind($ownerId, $ownerType, $fileId)
 {
     if ($fileId === [] || $fileId === '') {
         File::deleteByOwner($ownerId, $ownerType);
         return true;
     }
     return is_array($fileId) ? $this->bindMultiple($ownerId, $ownerType, $fileId) : $this->bindSingle($ownerId, $ownerType, $fileId);
 }