Previously the check was done in init(). This patch moves into main for unit testable friendly function.
This change brings a change which was done for the 'mc' package to allow for clean repo and have a cleaner github drop in experience.