Replacing call_user_func_array with a simple call