Altra osservazione.

$_CONFIG['check_table'] non è una funzione, ma un array!