refactored success? method
refactoring