More error checking
* Added check for blank post (apparently this is actually a thing)
* Re-did checks to use ternary if operator for brevity