Make returning the boolean more simpler.

Made the return simpler. in_array() is going to return true if found or false otherwise, so just return that directly and make the code simpler.