How to Check If a String Is Valid JSON in PHP | CodeTrail