FIX Refactor _is_fitted method into check_is_fitted

ENH Add raise_error parameter to allow handling the result externally.