Check out example codes for "paperclip check if attachment exists". It will help you in understanding the concepts better.

Code Example 1

variable.field.exists?

# Example
user.avatar.exists?

Learn ReactJs, React Native from akashmittal.com