I'd like to know how to check if a text file is empty or not. It means that there is no text even some space, i.e. it was blank
function keyRemain($path)
{
    $ambil = file_get_contents("data/$path/keywords.txt");
    $kw = explode(",", $ambil);
    if (count($kw) > 1) {
        return false;
    } else {
        return true;
    }
}