Added method 'available' back to iOS class code so plugin JS 'available' functions correctly.