This will work for now. I have some thoughts on making this check more robust that are outside the scope of this PR.