Implemented parseIf