Devise\Media\Helpers\Caption::exists PHP Method

exists() public method

Checks if a caption file exitst for the image passed
public exists ( string $imagePath ) : boolean
$imagePath string
return boolean
    public function exists($imagePath)
    {
        $cptPath = $this->MediaPaths->imageCaptionPath($imagePath);
        return $this->File->exists($cptPath);
    }