Changed check to use a standard Chef method