checking if sockets extension is available