Redundant second if, and we may use "not" operation for bool, I suppose it's faster.
Attach a file by drag & drop or click to upload