PHP- Odd/Even Check Function