It will still only try to get the id from the query parameter. I think adding an isset around it, like you did with user would solve that.