Code-Review

Please review my code
What do you think about combining this check with the above one?