Könnt ihr mal eine Be3ispiel if-Anweisung machen?

Funktioniert das?
PHP-Code:
if (! empty ( $_COOKIE["KlapID"] ) ) {
print 
"Das Cookie ist leer!";

} else if  (
$_COOKIE["KlapID"] == "Name1*1") {
print 
"Name1";

Oder wie müsste ich das sonst machen?