Added isDecodable function