PHP variables need to be declared before adding a value to it code example
Example: assign value php
reset($val['MemberSaveRoom'])['is_favour_room'] = true; // INCORRECT
$val['MemberSaveRoom'][0]['is_favour_room'] = true; // CORRECT
// result
MemberSaveRoom = array(
[0] = array(
'is_favour_room' => true,
));