Added isUnavailable and applied to 4 functions