removed empty parameter; simpler check for existing vars
replace request_stack by request
updated required version of sabre/dav