strtotime should return false instead of 0 on failure

Changed return 0 with return false.
Improved code formatting.
Changed binary operators with logical operators