ensureInstanceOf (arg, instance, defaultValue) {
        'use strict'

        if (instance !== undefined && arg instanceof instance) {
            return arg
        }

        return defaultValue

    }
Ensures the given value is an instance of a constructor function.

@param  {Object} arg          The value to check instance of.
@param  {Function} instance     The constructor of the instance to check against.
@param  {Object} defaultValue A default fallback value if instance check fails
@return {Object}              The given value if type check passes, or the default value if it fails.