Considering the following code:
if (isset($array['key']) && $array['key'] == 'some value') {
// do something...
} else {
// do something else...
}
Is there a way I can simplify the code so that I don't have to check with isset every time I want to use an array value in an if clause? Something like $array['key'] ?= 'some value'