use !== when checking for raster type