if ( is_array($al) || $al instanceof Countable )  {
    // for dongusu kodları buraya
} else {
 echo 'Değişken countable değil';
}