The Serial library for MKR1000 using IDE 1.6.8 seems to be missing the function AvailableForWrite. Confirmation or refutation requested.