function getSafeMethod (object, method) {
  if (!isSafeMethod(object, method)) {
    throw new Error('No access to method "' + method + '"')
  }

  return object[method]
}
Validate whether a method is safe.
Throws an error when that's not the case.
@param {Object} object
@param {string} method
@return {function} Returns the method when valid