<?php

function checkLoginUser($idUser)
{
    if ($idUser > 0) {
        echo 'да';
    } else {
        echo 'нет';
    }
}
    
checkLoginUser(1);