Feature/json request

Shouldn't we check for bool as well then to be bullet proof? http://php.net/manual/en/function.is-callable.php