Prevent a division by zero using the ? operator

http://ideone.com/05OKxH