Hotfix/restcontroller null error

added is_array