Refactoring is_dev_version and is_strict_dev_version to ensure they
return booleans.