Why would you set the attribute to `-1` if it is not available? I would recommend that where ever it is used it should be checked for existence instead.