Add sourceMap check

or else it might go *KABOOM* in the non sourceMap case