Update functions.php

Fix for PHP Version < 5.3