The power of 2 written in PHP

Not much to explain
function isPowOf2($int) {
    $logResult = log($int, 2);
    
    return ($logResult == (int) $logResult);
}