No insert if image not present

I have an action that inserts a record, then uploads an image, then inserts a record for the image. The image will not always be present so I want to bypass the second insert if the image is not there. I know I have seen a tutorial or video on doing this but I can’t find it. Can you please point me in the right direction. Thanks!

Look at this and see if you can use these instructions…