Infosys interview question

Write a custom hook to return a boolean value.