Added PHP Implementation
made all APIs return false if search fails