Use functions.php only if available, props @toscho