Validate object[id] presence checking the id as a symbol and string