Fixed check for proxy options