fix empty can evaluate variable only in php < v5.4