Added method to check wifi connection in Utils

Required access network state permission