Added Return to Boolean Function

Added a proper return to the function.