Workaround for a DMD bug that causes the wrong boolean value to be returned - needs investigation