Why give isset() an bool as result and not the real value as result.
Because isset() returns a bool. You need to return your cookie value if isset()
is eval’d to true :
['age' => (isset($_COOKIE['age']) ? $_COOKIE['age'] : false),]
The above line will return the value if the cookie is set, and false
otherwise.
solved functions gives bool and not the value, isset()