It's better to use array_key_exists(), otherwise a value of null leads to return the default value