Removed a warning from latest xcode

Warning was:

 Variable 'hasBytesAvailable' is used uninitialized whenever 'if' condition is true

Solution:

Initialise 'hasBytesAvailable' to NO.