Removed useless brackets
Added ResultSet Checks