Php Array Check If Index Exists Sql Example Problems For Distributive Property