Method_exists replaced with is_callable
Reworked to support old PHP versions

Array short syntax excluded.
Merge pull request #2584 from HadesArchitect/master

Fixed method existanse check