Update device_detection.php

Added quick support for Mac OS and changed the return value since you cant return a class as an array.