I\'ve been finding that I\'m writing a lot of code like this:
$customData1 = $user[\'custom_data_1\'] ?? null; $customData2 = $user[\'custom_data_2\'] ?? null