Added check in niftiarr