Prevent XCode warning -> Variable 'imageData' is used uninitialized whenever 'if' condition is false