 #
 # Throws an exception unless something is function.
 #
-# @param thing          The thing to test.
-# @param [msg] {string} An optional error message
-#                       to set on the thrown Error.
-#
-verifyFunction = (thing, msg) ->
+# @param thing              The thing to test.
+# @param [message] {string} An optional error message
+#                           to set on the thrown Error.
+#
+verifyFunction = (thing, message) ->
   if isFunction(thing) is false
-    throw new Error msg || 'Invalid function'
+    throw new Error message || 'Invalid function'
 
 ##
 # Public function `types.isFunction`.

# Throws an exception unless something is a non-null,
# non-array object.
#
# @param thing          The thing to test.
# @param [msg] {string} An optional error message
#                       to set on the thrown Error.
#
verifyObject = (thing, msg) ->
  if isObject(thing) is false
    throw new Error msg || 'Invalid object'

##
# Public function `types.isObject`.

# @param thing {object}       The object to test.
# @param prototype {function} The prototype that the
#                             test is against.
# @param [message] {string}   An optional error message
#                             to set on the thrown Error.
#
verifyInstance = (thing, prototype, message) ->
  if isInstance(thing, prototype) is false
    throw new Error message || 'Invalid type'

##
# Public function `types.isInstance`.
