i'm using a ArcGIS 10.3 modelbuilder for comparing two subdatasets in a HDF file. model runs for multiple inputs i.e. it has an iterator. model runs fine for many inputs but sometimes it throws an exception and stops. I debugged the model and found out that when Con tool compare two subdatasets in the model and if it doesn't find data (i.e. null raster) it trows an exception and whole model stops. I searched a solution for it and came out is using a script tool.
My question is i want to write a script tool that checks if input raster is null and outputs two Booleans 'true' or 'false'. if False then model runs as usual and if True it comes to next input in iteration and keep running.