php ternary operator if value exists code example Example: php shorthand if isset $var = $var ?? "default";